<?php
/* @var $this ReviewsController */
/* @var $model Reviews */
/* @var $form TbActiveForm */
?>

<div class="form">

    <?php
    $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
        'id' => 'reviews-form',
        // Please note: When you enable ajax validation, make sure the corresponding
        // controller action is handling ajax validation correctly.
        // There is a call to performAjaxValidation() commented in generated controller code.
        // See class documentation of CActiveForm for details on this.
        'enableClientValidation' => true,
        'clientOptions' => array(
            'validateOnSubmit' => true,
        ),
    ));
    ?>


    <?php echo $form->errorSummary($model); ?>


    <?php echo $form->textFieldControlGroup($model, 'reviewOrderNo', array('span' => 5, 'maxlength' => 20)); ?>

    <?php echo $form->textAreaControlGroup($model, 'reviewContent', array('span' => 8, 'maxlength' => 255)); ?>


    <?php echo $form->textFieldControlGroup($model, 'reviewUsername', array('span' => 5, 'maxlength' => 255)); ?>

    <?php echo $form->textFieldControlGroup($model, 'reviewUseremail', array('span' => 5, 'maxlength' => 255)); ?>

    <?php echo $form->textFieldControlGroup($model, 'reviewUserphone', array('span' => 5, 'maxlength' => 255)); ?>

    <?php echo $form->textFieldControlGroup($model, 'reviewUserIp', array('span' => 5, 'maxlength' => 20)); ?>

    <?php echo $form->textFieldControlGroup($model, 'reviewDate', array('span' => 5, 'maxlength' => 20)); ?>
    
    <?php echo $form->textFieldControlGroup($model, 'reviewRating', array('span' => 5, 'maxlength' => 20)); ?>

    <?php echo $form->dropDownListControlGroup($model, 'reviewType', array('Отрицательный отзыв', 'Положительный отзыв')); ?> 

        <?php echo $form->dropDownListControlGroup($model, 'reviewActive', array('Не опубликован', 'Опубликован')); ?>            

    <div class="form-actions">
        <?php
        echo TbHtml::submitButton($model->isNewRecord ? 'Create' : 'Save', array(
            'color' => TbHtml::BUTTON_COLOR_PRIMARY,
            'size' => TbHtml::BUTTON_SIZE_LARGE,
        ));
        ?>
    </div>

<?php $this->endWidget(); ?>

</div><!-- form -->